package com.scau.os.MemorySys;

import com.scau.os.course_manager.bean.PCB;

public class Test {

    public static final Memory memory = new Memory(512);
    public void allocate(Memory memory){
        UseMemory u = new UseMemory();
        boolean a;
        PCB pcb = new PCB();
//        a = u.FF(memory,510,pcb);//传入需要申请的大小，和Pcb
        PCB pcb2 = new PCB();
        boolean fin = u.FF(memory,100,pcb2);
        PCB pcb3 = new PCB();
        u.FF(memory,5,pcb3);
        u.release(memory,pcb3);
//        u.showMemory(memory);
//        u.release(memory,pcb2);
    }

}
